<?php

use think\facade\Route;



//列表页和详情页

Route::rule('site-<listName>-<id>','index/article/list');

Route::rule('site-<listName>-<id>-<cat_id>','index/article/list');

Route::rule('site-<listName>/show-<cat_id>-<id>','index/article/show');

Route::rule('site-<listName>-<id>', 'index/article/list');

Route::rule('site-<listName>-<id>-<cat_id>', 'index/article/list');

Route::rule('site-<listName>-<id>-<cat_id>-<child_id>', 'index/article/list');

Route::rule('site-<listName>-<id>-<cat_id>-<child_id>-<third_id>', 'index/article/list');



//商品列表、详情、购物车、下单及支付

Route::rule('store-list','/index/Goods/index');

Route::rule('store-list-<id>','index/goods/goods_list');

Route::rule('store-list-<id>-<parent_id>','index/goods/goods_list');

Route::rule('store-list-<id>-child-<child_id>','index/goods/goods_list');

Route::rule('store-info-<id>','index/goods/goods_info');

Route::rule('flow-cart','index/flow/cart');

Route::rule('flow-checkout','index/flow/checkout');

Route::rule('flow-done','index/flow/done');

Route::rule('flow-pay','index/flow/pay');



//会员页相关

Route::rule('login','index/member/login');

Route::rule('register','index/member/register');

Route::rule('member','index/member/index');

Route::rule('logout','index/member/logout');





//产品相关

Route::get('goods_list','index/product/list');

Route::get('goods-detail-<goods_id>','index/product/detail');

Route::get('goods-spec-detail-<model_id>','index/product/goods_spec_detail');

Route::post('goods-cart-add','index/product/cart_add');

Route::post('goods-sure-order','index/product/sure_orde');

Route::get('order-detail-<order_sn>','index/member/details');

Route::get('order-export-<order_sn>','index/member/export_order');

Route::post('update-cart-quantity','index/product/update_cart');

Route::post('delete-cart-item','index/product/delete_cart');

Route::post('submit-order','index/product/submit_cart_order');

Route::get('export-order','index/product/export_order');

Route::post('submit-order-batch','index/product/submit_batch_order');

Route::post('get-second-category','index/article/get_second_category');











